home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
developer.apple.com
/
developer.apple.com.tar
/
developer.apple.com
/
tools
/
OptimizationExample.dmg
/
Optimization Example
/
listings
/
test.size.s
< prev
next >
Wrap
Text File
|
2004-07-13
|
4KB
|
202 lines
.section __TEXT,__text,regular,pure_instructions
.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
.data
.cstring
.align 2
LC0:
.ascii "doWhileWithReturn returned %d\12\0"
.align 2
LC1:
.ascii "doubleTest returned %lf\12\0"
.section __TEXT,__text,regular,pure_instructions
.align 2
.align 2
.globl _main
.section __TEXT,__text,regular,pure_instructions
.align 2
_main:
mflr r0
bcl 20,31,"L00000000001$pb"
"L00000000001$pb":
stw r0,8(r1)
stw r31,-4(r1)
mflr r31
stwu r1,-96(r1)
bl L_arrayAssignmentLoop$stub
bl L_doWhileWithReturn$stub
mr r4,r3
addis r3,r31,ha16(LC0-"L00000000001$pb")
la r3,lo16(LC0-"L00000000001$pb")(r3)
bl L_printf$stub
bl L_doubleTest$stub
addis r3,r31,ha16(LC1-"L00000000001$pb")
stfd f1,64(r1)
la r3,lo16(LC1-"L00000000001$pb")(r3)
lwz r4,64(r1)
lwz r5,68(r1)
bl L_printf$stub
lwz r0,104(r1)
addi r1,r1,96
li r3,0
mtlr r0
lwz r31,-4(r1)
blr
.align 2
.globl _arrayAssignmentLoop
.section __TEXT,__text,regular,pure_instructions
.align 2
_arrayAssignmentLoop:
li r9,10
addi r2,r1,-64
mtctr r9
L7:
stw r9,0(r2)
addi r2,r2,4
addi r9,r9,-1
bdnz L7
blr
.align 2
.globl _doWhileWithReturn
.section __TEXT,__text,regular,pure_instructions
.align 2
_doWhileWithReturn:
li r0,101
mtctr r0
L13:
bdnz L13
li r3,6262
blr
.data
.literal8
.align 3
LC2:
.long 0
.long 0
.align 3
LC3:
.long 1127219200
.long 0
.section __TEXT,__text,regular,pure_instructions
.align 2
.align 2
.globl _doubleTest
.section __TEXT,__text,regular,pure_instructions
.align 2
_doubleTest:
stmw r30,-8(r1)
mflr r0
stwu r1,-64(r1)
bcl 20,31,"L00000000002$pb"
"L00000000002$pb":
mflr r7
lwz r2,0(r1)
mtlr r0
lis r0,0xfffe
ori r0,r0,51056
mr r30,r1
addis r8,r7,ha16(LC3-"L00000000002$pb")
stwux r2,r1,r0
addis r2,r7,ha16(LC2-"L00000000002$pb")
lfd f13,lo16(LC3-"L00000000002$pb")(r8)
lfd f1,lo16(LC2-"L00000000002$pb")(r2)
addi r0,r1,32
li r9,0
lis r10,0x4330
li r11,0
L24:
stw r9,36(r30)
li r8,100
stw r10,32(r30)
mtctr r8
lfd f0,32(r30)
add r2,r11,r0
fsub f0,f0,f13
L29:
stfd f0,0(r2)
fadd f1,f1,f0
addi r2,r2,8
bdnz L29
addi r9,r9,1
addi r11,r11,800
cmplwi cr7,r9,99
ble+ cr7,L24
lwz r1,0(r1)
lmw r30,-8(r1)
blr
.data
.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
.align 2
L_doubleTest$stub:
.indirect_symbol _doubleTest
mflr r0
bcl 20,31,L0$_doubleTest
L0$_doubleTest:
mflr r11
addis r11,r11,ha16(L_doubleTest$lazy_ptr-L0$_doubleTest)
mtlr r0
lwzu r12,lo16(L_doubleTest$lazy_ptr-L0$_doubleTest)(r11)
mtctr r12
bctr
.data
.lazy_symbol_pointer
L_doubleTest$lazy_ptr:
.indirect_symbol _doubleTest
.long dyld_stub_binding_helper
.data
.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
.align 2
L_printf$stub:
.indirect_symbol _printf
mflr r0
bcl 20,31,L1$_printf
L1$_printf:
mflr r11
addis r11,r11,ha16(L_printf$lazy_ptr-L1$_printf)
mtlr r0
lwzu r12,lo16(L_printf$lazy_ptr-L1$_printf)(r11)
mtctr r12
bctr
.data
.lazy_symbol_pointer
L_printf$lazy_ptr:
.indirect_symbol _printf
.long dyld_stub_binding_helper
.data
.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
.align 2
L_doWhileWithReturn$stub:
.indirect_symbol _doWhileWithReturn
mflr r0
bcl 20,31,L2$_doWhileWithReturn
L2$_doWhileWithReturn:
mflr r11
addis r11,r11,ha16(L_doWhileWithReturn$lazy_ptr-L2$_doWhileWithReturn)
mtlr r0
lwzu r12,lo16(L_doWhileWithReturn$lazy_ptr-L2$_doWhileWithReturn)(r11)
mtctr r12
bctr
.data
.lazy_symbol_pointer
L_doWhileWithReturn$lazy_ptr:
.indirect_symbol _doWhileWithReturn
.long dyld_stub_binding_helper
.data
.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
.align 2
L_arrayAssignmentLoop$stub:
.indirect_symbol _arrayAssignmentLoop
mflr r0
bcl 20,31,L3$_arrayAssignmentLoop
L3$_arrayAssignmentLoop:
mflr r11
addis r11,r11,ha16(L_arrayAssignmentLoop$lazy_ptr-L3$_arrayAssignmentLoop)
mtlr r0
lwzu r12,lo16(L_arrayAssignmentLoop$lazy_ptr-L3$_arrayAssignmentLoop)(r11)
mtctr r12
bctr
.data
.lazy_symbol_pointer
L_arrayAssignmentLoop$lazy_ptr:
.indirect_symbol _arrayAssignmentLoop
.long dyld_stub_binding_helper